home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJTST200.ZIP / tests / libc / crt0 / ms.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-03  |  449 b   |  22 lines

  1. #include <stdio.h>
  2. #include <go32.h>
  3. #include <stdlib.h>
  4.  
  5. int
  6. main(int argc, char **argv)
  7. {
  8.   int i;
  9.   printf("%04lx : %04x %04x %04x\n",
  10.      _go32_info_block.linear_address_of_transfer_buffer >> 4,
  11.      _go32_my_cs(), _go32_my_ds(), _go32_info_block.selector_for_linear_memory);
  12.   if (argc < 2)
  13.     return 0;
  14.   for (i=0; i<atoi(argv[1]); i++)
  15.   {
  16.     printf("[%02d] ", i);
  17.     fflush(stdout);
  18.     system(argv[0]);
  19.   }
  20.   return 0;
  21. }
  22.